package com.coolingme.general;

/**
 * 具体命令
 *
 * @author wangyue
 * @date 2020-09-24 21:15
 */
public class ConcreteCommand implements ICommand {

    /**
     * 直接创建接收者，不暴露给客户端
     */
    private Receiver receiver = new Receiver();

    @Override
    public void execute() {
        this.receiver.action();
    }

}
